package com.lyb.service;

import com.spring.*;

/**
 * @author Sobremesa
 * @version 1.0.0
 * @ClassName UserService.java
 * @Description TODO
 * @createTime 2021年08月16日 11:26:00
 */
@Component("userService")
@Scope("prototype")
public class UserServiceImpl implements UserService {
    @Autowired
    private OrderService orderService;

    private String  Name;


    public void setName(String name) {
        Name = name;
    }
//
//    @Override
//    public void afterPropertiesSet() throws Exception {
//        System.out.println("初始化");
//    }

    @Override
    public void test(){
        System.out.println(orderService);
        System.out.println(Name);
    }
}
